package com.ganmiao.server.file.enums;

import lombok.Getter;

/**
 * 状态常量
 */
@Getter
public enum StatusEnums {

    PENDING('0', "待处理/待审核"),
    NORMAL('1', "正常"),
    NOT_ADOPT('2', "审核不通过"),
    DELETE('9', "删除"),
    ;

    private char status;
    private String remark;

    StatusEnums(char status, String remark) {
        this.status = status;
        this.remark = remark;
    }

    public static StatusEnums getInstance(char status) {
        for (StatusEnums statusEnums : StatusEnums.values()) {
            if (statusEnums.status == status) {
                return statusEnums;
            }
        }
        return null;
    }
}
